﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class Student 
{
    private string Name
    {
        get;
        set;
    }

    private int FacultyNum
    {
        get;
        set;
    }

    public Student(string name, int facultyNum)
    { 
        if(name=="")
            throw new ArgumentException("Name cannot be null string!");
        if (facultyNum < 10000 || facultyNum > 99999)
            throw new ArgumentException("FcaultyNum cannot be less than 10000 or greater than 99999");

        this.FacultyNum = facultyNum;
        this.Name = name;
    }

    public override int GetHashCode()
    {
        return FacultyNum.GetHashCode();
    }

    public override bool Equals(object obj)
    {
        Student other  = (Student)obj;
        if (this.Name != other.Name)
        {
            return false;
        }
        else 
        {
            return this.FacultyNum == other.FacultyNum;
        }
    }
    
}

